"""
@Time ： 2022/9/19 11:14
@Auth ： 陈杰 200320501042
@E-mail : 1612845322@qq.com
"""
import random
number = random.randint(0,1000)
guess = -1
def Guess(i):
    if i < number:
        print("太小了，再大一点！")
    else:
        print("太大了，再小一点！")


if __name__ == '__main__':
    n = 0
    for j in range(0,10):
        x = int(input("你还有" + str(10 - n)+"次机会，请输入你猜的数字[0-1000]："))
        if x == number:
            print("恭喜你，猜对了")
            break
        Guess(x)
        n+=1
    if n>=10:
        print("太笨了。下次再来吧！")